package com.ttg.pojo;

import java.util.HashMap;
import java.util.Map;

public abstract class BasePojo {
    protected String merchantId;
    protected String appId;
    protected String signatureInfo;
    protected String signatureAlgorithm;

    protected final Map<String, String> allParameters = new HashMap(60);

    public Map<String, String> getAllParameters() {
        return allParameters;
    }

    @Override
    public String toString() {
        return "BasePojo{" +
                "merchantId='" + merchantId + '\'' +
                ", appId='" + appId + '\'' +
                ", signatureInfo='" + signatureInfo + '\'' +
                ", signatureAlgorithm='" + signatureAlgorithm + '\'' +
                '}';
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
        this.allParameters.put("merchantId",merchantId);
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
        this.allParameters.put("appId",appId);
    }

    public String getSignatureInfo() {
        return signatureInfo;
    }

    public void setSignatureInfo(String signatureInfo) {
        this.signatureInfo = signatureInfo;
        this.allParameters.put("signatureInfo",signatureInfo);
    }

    public String getSignatureAlgorithm() {
        return signatureAlgorithm;
    }

    public void setSignatureAlgorithm(String signatureAlgorithm) {
        this.signatureAlgorithm = signatureAlgorithm;
        this.allParameters.put("signatureAlgorithm",signatureAlgorithm);
    }
}
